how to create function in c